package com.example.demo.service.impl;

import com.example.demo.dao.CompanyDao;
import com.example.demo.entity.response.Response;
import com.example.demo.entity.sqlbean.Company;
import com.example.demo.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CompanyServiceImpl implements CompanyService {

    @Autowired
    CompanyDao companyDao;

    @Override
    public Response companySelect() {
        Response response = new Response();
        Company company = companyDao.selectCompany();
        response = Response.success(company);
        return response;
    }
}
